﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Media;
using VNet.VisiSuite.VisiBoard.Models;

namespace VNet.VisiSuite.VisiBoard.Common
{
    public static class Constants
    {
        public static StaticData StaticData = new StaticData();
        public const string VisiBoardSdfFile = "VisiBoard.sdf";
        public const string RegistryDataDir = "DataDir";
        public const string RegistryDataUpdated = "DataUpdated";
        public const string RegistryDataUpdated2 = "DataUpdated2";
    }

    public class StaticData : BaseModel
    {
        private string _logoPath;
        public string LogoPath
        {
            get { return _logoPath; }
            set
            {
                if (_logoPath == value) return;
                _logoPath = value;
                OnPropertyChanged("LogoPath");
            }
        }
    }

    public class ComboBoxItemModel : BaseModel
    {
        private int _id;
        private string _displayMemberPath;

        public ComboBoxItemModel(int id, string displayMemberPath)
        {
            _id = id;
            _displayMemberPath = displayMemberPath;
        }

        public int Id
        {
            get { return _id; }
            set
            {
                _id = value;
                OnPropertyChanged("Id");
            }
        }

        public string DisplayMemberPath
        {
            get { return _displayMemberPath; }
            set
            {
                _displayMemberPath = value;
                OnPropertyChanged("DisplayMemberPath");
            }
        }
    }
}
